import './assets/main.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// if you just want to import css
import 'element-plus/theme-chalk/dark/css-vars.css'
import '@/style/dark/css-vars.css'


import {createI18n} from 'vue-i18n'
import language from '@/language/language.js'

import {createApp} from 'vue'
import {createPinia} from 'pinia'
import App from './App.vue'
import router from './router'

const i18n = createI18n({
    locale: "zh",
    messages: language
});


const app = createApp(App)


app.use(createPinia())
app.use(router)
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(i18n)
app.mount('#app')
